﻿@model List<Quantity>

@Html.ValidationSummary()
@for (int i = 0; i < Model.Count; i++)
{
    <p>Quantity @(i + 1) name:</p>
    <input id="Quantities_@(i)__Id" name="Quantities[@(i)].Id" type="hidden" value="@(Model[i].Id)" />
    <div>
        <input class="text-box single-line" id="Quantities_@(i)__Name" name="Quantities[@(i)].Name" type="text" value="@(Model[i].Name)" />
    </div>
}
